import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) throws ParseException {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入您入职的日期,格式为：xxxx年xx月xx日");
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日");
        Date joinTime = sdf.parse(sc.next());
        long join = joinTime.getTime();
        long today = System.currentTimeMillis();
        long time=today-join;
        int year=(int) time/1000/60/60/24/365;
        System.out.println(year);


    }
}
